package com.qjdchina.sku.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qjdchina.commons.result.Result;
import com.qjdchina.sku.biz.HardcoverCostManager;
import com.qjdchina.sku.converter.HardcoverCostConverter;
import com.qjdchina.sku.dao.mapper.HardcoverCostMapper;
import com.qjdchina.sku.model.HardcoverCost;
import com.qjdchina.sku.model.vo.HardcoverCostVO;

@Service
public class HardcoverCostManagerImpl implements HardcoverCostManager{
	@Autowired
	private HardcoverCostMapper hardcoverCostMapper;
	
	/**
	 * 获取所有的精装费用
	 * shenpingfeng
	 * 2017年1月3日
	 * @return
	 */
	@Override
    public Result<List<HardcoverCostVO>> getAllHardcoverCost() {
		List<HardcoverCost> hardcoverCosts = hardcoverCostMapper.selectAllHardcoverCost();
		List<HardcoverCostVO> hardcoverCostVOs = HardcoverCostConverter.toHardcoverCostVOs(hardcoverCosts);
		return new Result<List<HardcoverCostVO>>(hardcoverCostVOs) ;
    }
	

}
